/* public class ToStringDemo {
    
    public static void main(String[] args) {
        int numberTwenty = 20;
String converted = String.valueOf(numberTwenty);
        
        int dot = s.indexOf('.');
        
        System.out.println(dot + " digits " +
            "before decimal point.");
        System.out.println( (s.length() - dot - 1) +
            " digits after decimal point.");
    }
}


String price = "" + 123; */

public class StringToInteger {
  public static void main(String [] args)
  {
    int i = myStringToInteger("123");
    System.out.println("String decoded to number " + i);
  }

  public int MyStringToInteger(String str){
	MyStringToInteger sr = new MyStringToInteger();
	System.out.println("String decoded to number "  +sr.StringToInteger);
      /* ... */
  }
}